package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户交易记录对象 user_transaction_record
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
public class UserTransactionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易记录id */
    private Long id;

    /** 收款方id */
    @Excel(name = "收款方id")
    private Long accountUserId;

    /** 付款方id */
    @Excel(name = "付款方id")
    private Long payerUserId;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal transactionAmount;

    /** 交易日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionTime;

    /** 交易状态：1为交易成功 2为交易失败 3为已撤销 */
    @Excel(name = "交易状态：1为交易成功 2为交易失败 3为已撤销")
    private Integer transactionStatus;

    /** 交易类型：1为普通交易 2为退款 */
    @Excel(name = "交易类型：1为普通交易 2为退款")
    private Integer transactionType;

    /** 交易物品名 */
    @Excel(name = "交易物品名")
    private String tradeName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccountUserId(Long accountUserId) 
    {
        this.accountUserId = accountUserId;
    }

    public Long getAccountUserId() 
    {
        return accountUserId;
    }
    public void setPayerUserId(Long payerUserId) 
    {
        this.payerUserId = payerUserId;
    }

    public Long getPayerUserId() 
    {
        return payerUserId;
    }
    public void setTransactionAmount(BigDecimal transactionAmount) 
    {
        this.transactionAmount = transactionAmount;
    }

    public BigDecimal getTransactionAmount() 
    {
        return transactionAmount;
    }
    public void setTransactionTime(Date transactionTime) 
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime() 
    {
        return transactionTime;
    }
    public void setTransactionStatus(Integer transactionStatus) 
    {
        this.transactionStatus = transactionStatus;
    }

    public Integer getTransactionStatus() 
    {
        return transactionStatus;
    }
    public void setTransactionType(Integer transactionType) 
    {
        this.transactionType = transactionType;
    }

    public Integer getTransactionType() 
    {
        return transactionType;
    }
    public void setTradeName(String tradeName) 
    {
        this.tradeName = tradeName;
    }

    public String getTradeName() 
    {
        return tradeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accountUserId", getAccountUserId())
            .append("payerUserId", getPayerUserId())
            .append("transactionAmount", getTransactionAmount())
            .append("transactionTime", getTransactionTime())
            .append("transactionStatus", getTransactionStatus())
            .append("transactionType", getTransactionType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("tradeName", getTradeName())
            .toString();
    }
}
